package com.tjnu.losca.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tjnu.losca.form.CategoryTable;
import com.tjnu.losca.pojo.Category;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author losca
 * @since 2022-02-13
 */
public interface ICategoryService extends IService<Category> {

    IPage<Category> getAll(Integer pageNum, Integer pageSize, String search);

    boolean del(String cId);

    boolean rec(String cId);

    boolean mulDel(String[] cIds);

    boolean add(Integer categoryId,String name);

    List<CategoryTable> categoryTable();

    HashMap getData();
}
